package com.example.demo.model;

import java.util.Date;
import java.util.List;

/**
 * 组织架构实体类（学校、系部、专业、班级）
 */
public class Organization extends BaseEntity {
    private Integer orgId;
    private String name;
    private String orgType; // SCHOOL, DEPARTMENT, MAJOR, CLASS
    private Integer parentId;
    private Date createTime;
    private List<Organization> children; // 子组织列表，用于树形结构

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOrgType() {
        return orgType;
    }

    public void setOrgType(String orgType) {
        this.orgType = orgType;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    public List<Organization> getChildren() {
        return children;
    }

    public void setChildren(List<Organization> children) {
        this.children = children;
    }
} 